import Service from '@/common/service/service';
import {DELETE_WORKFLOW, GET_MODEL_LIST} from "@/views/bpm/model/model.const";
import RequestModel from "@/common/model/request.model";
import WorkflowDataModel from "@/components-com/workflow/model/workflow-data.model";
import ResponseModel from "@/common/model/response.model";

export default class ModelService {


    /**
     * 获取流程示例列表
     * @param param
     */
    public static getModelList(param: RequestModel<WorkflowDataModel>): Promise<ResponseModel<WorkflowDataModel[]>> {
        return Service.post(GET_MODEL_LIST, param);
    }

    /**
     * 获取流程示例列表
     * @param param
     */
    public static deleteInstance(param: string[]): Promise<ResponseModel<WorkflowDataModel[]>> {
        return Service.post(DELETE_WORKFLOW, param);
    }
}
